﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class DistributionProductsInfoConfig : EntityTypeConfiguration<DistributionProductsInfo>
    {
        public DistributionProductsInfoConfig()
        {
            ToTable("Himall_DistributionProducts");      
            HasRequired(x => x.Himall_ProductBrokerage).WithMany(x => x.Himall_DistributionProducts).HasForeignKey(x => x.ProductbrokerageId);
        }
    }
}
